Function Reference

IsObj

Checks if a variable or expression is an object type.

IsObj ( variable )

 

Parameters

variable The variable/expression to check.

 

Return Value

Success: Returns 1 if expression is an object variable.
Failure: Returns 0 if expression is not an object variable.

 

Remarks


 

Related

ObjGet, ObjCreate

 

Example


$oShell = ObjCreate("shell.application")
if not IsObj($oShell) then
    Msgbox(0,"Error","$oShell is not an Object.")
else
    Msgbox(0,"Error","Successfully created Object $oShell.")
endif